<?php

class RecordTypeList {

    protected $dbo = NULL;

    public function __construct() {

        $this->dbo  = &DBO::getInstance();
    }

    public function getAllRecordTypes() {

        $res = $this->dbo->getAll("SELECT id,name
            FROM mtl.record_types
            ORDER BY id ASC",
            NULL,
            DB_FETCHMODE_ASSOC);

        throwOnError($res);

        return $res;
    }

}